//
//  RJHomeDetailVC.m
//  AirQuality
//
//  Created by Po on 15/6/8.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import "RJHomeDetailVC.h"
#import "RJHomeBottomView.h"
@interface RJHomeDetailVC ()
@property (retain, nonatomic) RJHomeBottomView * bottomView;            //下方视图
@end

@implementation RJHomeDetailVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setFrame:CGRectMake(0, sysNavBarHeight, ScreenWidth, ScreenHeight - sysNavBarHeight - sysTabbarHeight)];
    [self.view addSubview:[self getBottomView]];
}

#pragma mark - function
- (void)freeData
{
    [_bottomView freeData];
}


#pragma mark - getter
- (RJHomeBottomView *)getBottomView
{
    if (!_bottomView) {
        _bottomView = [[RJHomeBottomView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight - sysTabbarHeight - sysNavBarHeight) vc:self];
    }
    return _bottomView;
}

@end
